import { createRouter, createWebHashHistory } from 'vue-router';

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/login",
      component: () => import("../pages/Login.vue")
    },
    {
      path: "/home",
      component: () => import("../pages/Home.vue"),
      children: [
        {
          path: "car",
          component: () => import("../pages/Car.vue")
        },
        {
          path: "train",
          component: () => import("../pages/Train.vue")
        },
        {
          path: "metal",
          component: () => import("../pages/Metal.vue")
        }
      ]
    }
  ]
})

export default router
